#include <QtGui>
#include <QSet>
#include <QtSql>

class Calendar : public QCalendarWidget
{
	Q_OBJECT

	public:
	  Calendar(QWidget * parent = 0);
	public slots: 
	  void open();

	protected:
	  void resizeEvent(QResizeEvent * event);
	  virtual void paintCell ( QPainter * painter, const QRect & rect, 
			const QDate & date ) const;
 
	private:
	   QMap<QString, QString> *exercises;
	   QSqlDatabase db;
	   
};
